package router

import (
	"github.com/gin-gonic/gin"
	"zg3/internal/api"
	"zg3/internal/middleware"
)

func FriendRouter(c *gin.RouterGroup) {
	friendRouter := c.Group("friend").Use(middleware.Middleware())
	{
		friendRouter.POST("send", api.SendFriendRequest)
		friendRouter.POST("yes", api.Yes)
		friendRouter.POST("no", api.No)
		friendRouter.POST("top", api.Top)
		friendRouter.POST("noTop", api.NoTop)
		friendRouter.POST("list", api.List)
		friendRouter.POST("delete", api.Delete)
	}
}
